﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// ComFunctions 的摘要说明
/// </summary>
public class ComFunctions
{
    public ComFunctions()
    {
        //
        // TODO: 在此处添加构造函数逻辑
        //
    }

    public string BizToDbData(string strBiz)
    {
        string strDb = string.Empty;
        if ((strBiz != null) && (strBiz.Length>0) && (strBiz.IndexOf("'") >= 0))
        {
            strDb = strBiz.Trim().Replace("'", "''");
        }
        else
            strDb = strBiz;
        return strDb;
    }


}
